#include "consolechannel.h"
#include "loggerpriority.h"
#include <iostream>

using namespace std;

ConsoleChannel::ConsoleChannel(): m_stream(std::clog)
{
}

ConsoleChannel::ConsoleChannel(std::ostream& stream): m_stream(stream)
{
}

ConsoleChannel::~ConsoleChannel()
{
}

void ConsoleChannel::log(const LogMsg& msg)
{
    m_stream<<msg.m_msg<<endl;
}


